package com.vhall.component.entity.watchlimit.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author rui.zhou
 * @date 2021/5/26 15:22
 */
@Data
public class ReplyVO implements Serializable {

    @NotBlank(message = "phone不能为空")
//    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式有误")
    private String phone;

    private Integer code;

    @NotNull(message = "question_id参数错误")
    @ParamName(value = "question_id")
    @Max(value = Integer.MAX_VALUE, message = "question_id参数错误")
    private Integer questionId;

    @NotBlank(message = "room_id参数错误")
    @ParamName(value = "room_id")
    private String roomId;

    @NotNull(message = "answer_id参数错误")
    @ParamName(value = "answer_id")
    @Max(value = Integer.MAX_VALUE, message = "answer_id参数错误")
    private Integer answerId;

}
